package com.matt.docpro.model;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * Feedback
 * Created by on 2024/03/06.
 */
@Data
public class Feedback {
    String id;
    String title;
    String content;
    String userId;
    String userNm;
    Date time;

    public String getFormatTime() {
        if (time == null) {
            return "";
        }
        return DateUtil.format(time, "yyyy/MM/dd HH:mm");
    }
}
